import React, { Component } from "react";
import { Breadcrumb } from "element-react";
class BreadCroumb extends Component{
    constructor(props){
        super(props)
        this.state={
            breadList:this.props.breadList
        }
    }
    render(){
        return(
            <Breadcrumb separator=">">
           {this.state.breadList.map((item,index)=>{
                return (
                    <Breadcrumb.Item key={index}>{item.breadName}</Breadcrumb.Item>
                )
            })}
        
          </Breadcrumb>
        )
           
    }
}
export default BreadCroumb